import fasttext
import sys


if __name__ == '__main__':
    test_data = sys.argv[1]
    out_model = sys.argv[2]

    model = fasttext.load_model(out_model, label_prefix='__label__')

    result = model.test(test_data)
    print(result.precision)
    print(result.recall)
